package com.example.mybatis_book.service;

import com.example.mybatis_book.mapper.UserInfoMapper;
import com.example.mybatis_book.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoService {

    @Autowired
    private UserInfoMapper userMapper;

    public UserInfo getUserByName(String username){
        return userMapper.getUserInfoByName(username);
    }
}
